package com.loukou.lkt.lkt.redis;

import javax.annotation.Resource;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

public class RedisDao implements InitializingBean{

	@Resource(name="redisTemplate")
	protected RedisTemplate<String,Object> redisTemplate;
	
	protected ValueOperations<String, Object> valueOperations = null;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		valueOperations = redisTemplate.opsForValue();
	}

}
